#Build the renderer library
PROJECT(renderer)

ADD_SUBDIRECTORY(impl/opengl)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(
  RENDERER_SRCS
  ibufferbase.h
  ibufferbase.cpp
  bufferguard.h
  bufferguard-inl.h
  irenderer.h
  irenderer-inl.h
  irenderer.cpp
  ideclaration.h
  declarationelement.h
  enum.h
  )

ADD_LIBRARY(renderer STATIC ${RENDERER_SRCS})

TARGET_LINK_LIBRARIES(renderer ${LIBS})